#include "ScaleBar.h"
#include "qnamespace.h"
#include "ui_ScaleBar.h"

ScaleBar::ScaleBar(QWidget* parent)
	: QWidget(parent)
	, ui(new Ui::ScaleBar)
{
	ui->setupUi(this);
	ui->pushButton_add->setAttribute(Qt::WA_TranslucentBackground);
	ui->pushButton_dec->setAttribute(Qt::WA_TranslucentBackground);
}

ScaleBar::~ScaleBar()
{
	delete ui;
}

void ScaleBar::setScaleText(const QString& text)
{
	ui->label->setText(text);
}

void ScaleBar::on_pushButton_add_clicked()
{
	emit signalAdd();
}

void ScaleBar::on_pushButton_dec_clicked()
{
	emit signalDec();
}
